package cn.zyq.stater.config3.autoproperties;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

@Configuration
@ComponentScan(basePackageClasses = {cn.zyq.stater.config3.autoproperties.JDBCPropertyData.class})//@ComponentScan("cn.zyq.stater.bean")
//@ComponentScan配合@Component或@Service等注解创建并扫描对象到容器
// (目前因为只有User1添加了@Component所以这个扫描只针对User1生效)(User2和User3采用的是@Bean方式创建)
@PropertySource(value = "classpath:jdbc.properties",ignoreResourceNotFound = false)
public class Config8_ComponentScan {

}